#include<signal.h>
#include<iostream>
#include<unistd.h>
using namespace std;
void sigcb(int signo)
{
  cout<<"signal:"<<signo<<"my pid:"<<getpid()<<endl;
}
int main()
{
  struct sigaction act;
  act.sa_handler=sigcb;
  sigaction(SIGINT,&act,NULL);
  while(true)
  {

  }
  return 0;
}
